OBJECT SIZE

This command will return a real number representing the radius of the specified 3D object.

  Syntax
Return Float=OBJECT SIZE(Object Number)
Return Float=OBJECT SIZE(Object Number, Actual Size)
  Parameters
Object Number
Integer
The object number
Actual Size
Integer
This value is an integer number such as 1.

  Returns

This command will return a real number representing the radius of the specified 3D object

  Description

Where the dimensions are not the same value, an average of the X, Y and Z size is used to report the overall object size.

  Example Code
backdrop off : cls : sync on : sync rate 0 : hide mouse:cls 0
ObjectNumber=1
load object "models\model.x",ObjectNumber
print "BASIC3D EXPRESSION DATA"
if object exist(ObjectNumber)=1
print "size:";object size(ObjectNumber)
endif
while mouseclick()=0
sync
endwhile
if object exist(ObjectNumber)=1 then delete object ObjectNumber
end
  See also

BASIC3D Commands Menu
Index